const db = uniCloud.database() //代码块为cdb
const collection = db.collection('uni-id-users')
import { rebuilderResultCloud } from '../../utils/request.js'
// 查询用户
export  function queryUsers  (){
     return	collection.get()
}

// 更新
export  async function updateUser  ( { data = {} ,where = {}} = {}){
	 return	rebuilderResultCloud( collection.where(where).update(data) )
}
